import { createRouter, createWebHashHistory, RouterOptions } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: () => import('../views/home/home.vue')
  },
  {
    path: '/setting',
    component: () => import('../views/setting/setting.vue')
  }
]

export const router = createRouter({
  history: createWebHashHistory(),
  routes
} as RouterOptions)
